package com.carleasoft.mps.cms.business.train.constants;

import com.carleasoft.mps.core.result.BaseResult;

public enum ExceptionTrainEnum implements BaseResult {
    TEMP_ERROR("7107000000","模板下载失败！"),
    PARSE_ERROR("7107000001","解析错误！"),
    PLAN_DELETE_ERROR("7107000002","任务下发人才可删除！"),
    DATA_NOT_EXIT("7107000003","数据不存在！"),
    DRUG_ERROR("7107000004","该物品已存在！"),
    IMPORT_ERROR("7107000005","导入失败，请检查模板消耗数据填写是否是数值！"),
    DRUG_USED_ERROR("7107000006","该物品已经被使用，不可删除！"),
    PLAN_TYPE_USED_ERROR("7107000007","计划类型已被关联，不可删除！"),
    PLAN_USED_ERROR("7107000008","该计划已被训练考核关联，不可删除！"),
    ;

    private String code;

    private String message;

    ExceptionTrainEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode(){
        return this.code;
    }

    @Override
    public String getMessage(){
        return this.message;
    }
}
